package com.hexiang.ratelimit.annotation;

import java.lang.annotation.*;

/**
 * 限流注解
 *
 * @author hexiang
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface RateLimit {
    /**
     * 每秒产生令牌数量
     *
     * @return
     */
    long permitsPerSecond() default 1;
}
